﻿#ifndef DINGDANPICKERSTANDARDITEMMODEL_H
#define DINGDANPICKERSTANDARDITEMMODEL_H

#include <QStandardItemModel>
#include "dingdan.h"

class DingdanPickerStandardItemModel : public QStandardItemModel
{
    Q_OBJECT
public:
    explicit DingdanPickerStandardItemModel(QObject *parent = nullptr);

    void insertDingdan(QList<Dingdan*> dingdans, int type);

    void insertDingdan(Dingdan &dingdan, int type);

    void reset();

    void setWidgetType(Dingdan::DingdanType widgetType);

    Dingdan* getDingdan(int index);
signals:

public slots:

private:
    QStringList header;
    QList<Dingdan*> dingdans;
};

#endif // DINGDANPICKERSTANDARDITEMMODEL_H
